import { createWebHistory, createRouter } from 'vue-router'
import login from '../vtiws/login.vue'
import homea from '../vtiws/home/homea.vue'
import homeb from '../vtiws/home/homeb.vue'
import homec from '../vtiws/home/homec.vue'
import homed from '../vtiws/home/homed.vue'
import homee from '../vtiws/home/homee.vue'
const routes = [
    { path: '/', redirect: '/homea' },
  { path: '/login', component: login },
  { path: '/homea', component: homea,
    children:[
        {path: 'homeb', component: homeb},
        {path: 'homec', component: homec},
        {path: 'homed', component: homed},
        {path: 'homee', component: homee},
    ]
   },
]

const router = createRouter({
  history: createWebHistory(),
  routes,
})
export default router